'use strict';

module.exports = app => {
    const {
        DATE,
        STRING,
        INTEGER
    } = app.Sequelize;
    const system_examine = app.model.define('system_examine',{
        id:{
            type:INTEGER,
            primaryKey:true,
            autoIncrement:true,
            allowNull:false,
            comment:"千分制审核ID"
        },
        sponsor:{
            type:STRING,
            defaultValue:null,
            comment:"发起人"
        },
        name:{
            type:STRING,
            defaultValue:null,
            comment:"名字"
        },
        py_rule:{
            type:STRING,
            defaultValue:null,
            comment:"原规则"
        },
        py_explain:{
            type:STRING,
            defaultValue:null,
            comment:"原说明"
        },
        py_date:{
            type:DATE,
            defaultValue:null,
            comment:"原修改时间"
        },
        py_grades:{
            type:INTEGER,
            defaultValue:null,
            comment:"原分数"
        },
        ad_rule:{
            type:STRING,
            defaultValue:null,
            comment:"修改后规则"
        },
        ad_explain:{
            type:STRING,
            defaultValue:null,
            comment:"修改后说明"
        },
        ad_grades:{
            type:INTEGER,
            defaultValue:null,
            comment:"修改后分数"
        },
        ad_date:{
            type:DATE,
            defaultValue:null,
            comment:"修改时间"
        },
        ad_reason:{
            type:STRING,
            defaultValue:null,
            comment:"修改理由"
        }
    })
    system_examine.associate = function () {
        
    }
}